package com.cloud.pole.shop.biz.goods;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.ace.cache.annotation.Cache;
import com.cloud.pole.common.biz.BaseBiz;
import com.cloud.pole.mapper.goods.ShopGoodsPromotionTypeMapper;
import com.cloud.pole.shop.model.entity.goods.ShopGoodsPromotionType;
import tk.mybatis.mapper.entity.Example;
import tk.mybatis.mapper.entity.Example.Criteria;

/**
 * ${DESCRIPTION}
 *
 * @author wanghaobin
 * @create 2017-06-08 16:23
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class ShopGoodsPromotionTypeBiz extends BaseBiz<ShopGoodsPromotionTypeMapper, ShopGoodsPromotionType> {
	
	@Override
//	@Cache(key="shopGoodsPromotionType")
	public List<ShopGoodsPromotionType> selectListAll() {
		Example example = new Example(ShopGoodsPromotionType.class);
//	    example.setOrderByClause("type_id");
	    Criteria criteria = example.createCriteria();
	    criteria.andEqualTo("typeStatus", 1);
		return selectByExample(example);
	}
}
